<?php
// +----------------------------------------------------------------------
// | Author: derek <693472824@qq.com> <http://www.bloveambition.com/>
// +----------------------------------------------------------------------

namespace Blovex4\Model;
use Think\Model\ViewModel;

/**
 * 模型层
 * derek <693472824@qq.com>
 */
class FeedUserViewModel extends ViewModel {

    /**
     * 尽量减少需查询字段，以提高查询效率
     */
    protected $viewFields = array(
        
        'Feedback'     =>  array('feedback_id', 'content', 'create_time'                
        ),
            
        'User'    =>  array(
                            'account', 'username'=>'name',
                            '_on'=>'Feedback.user_id=User.user_id'
        )
    );
}